﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace GameObjectsAndEquipment
{
    public class TextObject : GameObject
    {
        private string text = "BLANK";
        private Color color = Color.White;
        private int width;
        private int height;

        public TextObject()
        {

        }

        public TextObject(Vector2 position, string text, SpriteFont font,Color color)
            :base(position)
        {
            this.text = text;
            this.color = color;
            this.width = (int)font.MeasureString(text).X;
            this.height = (int)font.MeasureString(text).Y;
        }


        public string Text
        {
            get { return text; }
            set { text = value; }
        }

        public Color Color
        {
            get { return color; }
            set { color = value; }
        }

        public int Width
        {
            get { return width; }
            set { width = value; }
        }

        public int Height
        {
            get { return height; }
            set { height = value; }
        }
    }
}
